﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;

namespace AUV5.Model
{
    /// <summary>
    /// 功能：     实体类 Message (站内交流的邮件) 
    /// 作者：     lwl
    /// 日期：     2011/11/11
    /// 修改日期： 
    /// 修改人：
    /// 修改内容：
    /// </summary>
    [Serializable]
    public class Message
    {
        public Message()
        {

        }

        #region Model

        private string _messageid;
        private string _content;
        private string _refserviceid;
        private string _refrequestid;
        private string _sender;
        private string _receiver;
        private string _resourcepath;
        private bool _isread;
        private int _senderstate;
        private int _receiverstate;
        private int _isdel;
        private int _state;
        private DateTime _createdate = DateTime.Parse("1900-1-1");
        private DateTime _updatedate = DateTime.Parse("1900-1-1");
        private DateTime _begindate = DateTime.Parse("1900-1-1");
        private DateTime _enddate = DateTime.Parse("1900-1-1");

        /// <summary>
        /// 
        /// </summary>
        public string MessageID
        {
            get { return _messageid; }
            set { _messageid = value; }
        }
        /// <summary>
        /// 邮件内容
        /// </summary>
        public string Content
        {
            get { return _content; }
            set { _content = value; }
        }
        /// <summary>
        /// 相关的服务ID
        /// </summary>
        public string RefServiceID
        {
            get { return _refserviceid; }
            set { _refserviceid = value; }
        }
        /// <summary>
        /// 相关服务对象
        /// </summary>
        public ServiceInfo RefService { get; set; }

        /// <summary>
        /// 相关的需求信息
        /// </summary>
        public string RefRequestID
        {
            get { return _refrequestid; }
            set { _refrequestid = value; }
        }

        /// <summary>
        /// 相关需求
        /// </summary>
        public RequestInfo RefRequest { get; set; }

        /// <summary>
        /// 发件人
        /// </summary>
        public string Sender
        {
            get { return _sender; }
            set { _sender = value; }
        }

        /// <summary>
        /// 发件人用户名
        /// </summary>
        public string SenderName { get; set; }

        /// <summary>
        /// 收件人
        /// </summary>
        public string Receiver
        {
            get { return _receiver; }
            set { _receiver = value; }
        }

        /// <summary>
        /// 收件人用户名
        /// </summary>
        public string ReceiverName { get; set; }

        /// <summary>
        /// 附件地址
        /// </summary>
        public string ResourcePath
        {
            get { return _resourcepath; }
            set { _resourcepath = value; }
        }
        /// <summary>
        /// 是否已读
        /// </summary>
        public bool IsRead
        {
            get { return _isread; }
            set { _isread = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int SenderState
        {
            get { return _senderstate; }
            set { _senderstate = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int ReceiverState
        {
            get { return _receiverstate; }
            set { _receiverstate = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int IsDel
        {
            get { return _isdel; }
            set { _isdel = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int State
        {
            get { return _state; }
            set { _state = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        public DateTime CreateDate
        {
            get { return _createdate; }
            set { _createdate = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        public DateTime UpdateDate
        {
            get { return _updatedate; }
            set { _updatedate = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        public DateTime BeginDate
        {
            get { return _begindate; }
            set { _begindate = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        public DateTime EndDate
        {
            get { return _enddate; }
            set { _enddate = value; }
        }

        #endregion Model
    }
}
